// lodash curry 基本使用

const _ = require('lodash')

function getNum(a, b, c) { 
  return a + b +c
}

const curried = _.curry(getNum)

console.log(curried(1, 2, 3)) // 6


console.log(curried(1)(2, 3)) // 6

console.log(curried(1, 2)(3)) // 6